package com.wuge.springInjection0807.Event;

import org.springframework.context.ApplicationEvent;

/**
 * Created by Administrator on 2017/8/7.
 */
public class MessageEvent extends ApplicationEvent {
    private static final long serialVersionUID = 1L;
    private String messageContent;
    public MessageEvent(Object source){
        super(source);
    }
    public MessageEvent(Object source, String messageContent){
        super(source);
        this.messageContent = messageContent;

    }
    public String getMessageContent(){
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }
}
